Difference between revisions of "CreditsTest"
From Sega Retro
(24 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly | + | <includeonly><div style="font-size: 90%">{{#fornumargs: n |
| r | | r | ||
| {{#ifexpr: {{#var:n}} mod 2 = 1 | {{#vardefine:n1|{{#expr:{{#var:n}}+1}}}}  | | {{#ifexpr: {{#var:n}} mod 2 = 1 | {{#vardefine:n1|{{#expr:{{#var:n}}+1}}}}  | ||
{{#if: {{{{{#var:n1}}|}}} | | {{#if: {{{{{#var:n1}}|}}} | | ||
− | * '''{{#var:r}}:''' {{{{{#var:n1}}|} | + | * '''{{#var:r}}:''' {{{{{#var:n1}}|}}} {{#cargo_store:_table=credits|role={{#var:r}}|name={{{{{#var:n1}}|}}}|game={{PAGENAME}}|console={{{console|}}}|date={{{date|}}}|pdf={{{pdf|}}}|pdfpage={{{pdfpage|}}}}} | |
<div style="border-left:8px solid silver; margin-left:10px; padding-left:8px;">'''{{#var:r}}'''</div> }} | <div style="border-left:8px solid silver; margin-left:10px; padding-left:8px;">'''{{#var:r}}'''</div> }} | ||
}}}}</div>{{#if: {{{source|}}} | | }}}}</div>{{#if: {{{source|}}} | | ||
− | : ''Source: {{{source}}}'' }} | + | : ''Source: {{{source}}}'' }}</includeonly><noinclude> |
<pre> | <pre> | ||
Line 24: | Line 24: | ||
| Colours of the rainbow | Red, Orange, Yellow, Green, Blue, Indigo, Violet | | Colours of the rainbow | Red, Orange, Yellow, Green, Blue, Indigo, Violet | ||
| Capital of Egypt | Cairo | | Capital of Egypt | Cairo | ||
+ | | pdf=bums.pdf | ||
+ | | pdfpage=3 | ||
}} | }} | ||
− | + | ||
An attempt at making credits more efficient. The template also outputs variables for rolecount ({{#var:rolecount}} in this example) as well as the entire text split into role_1, role_2 etc and name_1, name_2 etc. Unfortunately it would require editing every page that uses template:creditstable to implement. - [[User:Hivebrain|Hivebrain]] ([[User talk:Hivebrain|talk]]) 20:32, 12 August 2017 (CDT) | An attempt at making credits more efficient. The template also outputs variables for rolecount ({{#var:rolecount}} in this example) as well as the entire text split into role_1, role_2 etc and name_1, name_2 etc. Unfortunately it would require editing every page that uses template:creditstable to implement. - [[User:Hivebrain|Hivebrain]] ([[User talk:Hivebrain|talk]]) 20:32, 12 August 2017 (CDT) | ||
:I think it's inevitable that every page with a list of credits is going to need to be edited, if not just to add sections to transclude things -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 03:47, 13 August 2017 (CDT) | :I think it's inevitable that every page with a list of credits is going to need to be edited, if not just to add sections to transclude things -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 03:47, 13 August 2017 (CDT) | ||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 14:23, 10 November 2017
{{creditsTest | source=Instruction manual | Programmer | Hivebrain | Header type thing | | Colours of the rainbow | Red, Orange, Yellow, Green, Blue, Indigo, Violet | Capital of Egypt | Cairo }}
- Programmer: Hivebrain
Header type thing
- Colours of the rainbow: Red, Orange, Yellow, Green, Blue, Indigo, Violet
- Capital of Egypt: Cairo
- Source: Instruction manual
An attempt at making credits more efficient. The template also outputs variables for rolecount ( in this example) as well as the entire text split into role_1, role_2 etc and name_1, name_2 etc. Unfortunately it would require editing every page that uses template:creditstable to implement. - Hivebrain (talk) 20:32, 12 August 2017 (CDT)
- I think it's inevitable that every page with a list of credits is going to need to be edited, if not just to add sections to transclude things -Black Squirrel (talk) 03:47, 13 August 2017 (CDT)