User:Tiddlywinks/fa-row: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Forgot, wikis are weird...parameters are substituted not resolved "logically". I think I've figured out alternate logic, though)
m (another missed)
 
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
{{!}} 0 {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|0}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|0}} {{!}}{{!}} {{{{{ms|MS/6}}}|{{padleft:{{{1|0}}}|{{{padding|3}}}|0}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|0}} }} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|0}} {{!}}{{!}} {{Art|{{padleft:{{{1|0}}}|4|0}}|{{User:Tiddlywinks/FormImageData|{{{1|0}}}|name}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|0}} }}
{{!}} 0 {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|0}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|0}} {{!}}{{!}} {{{{{ms|MS/6}}}|{{padleft:{{{1|0}}}|{{{padding|3}}}|0}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|0}} }} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|0}} {{!}}{{!}} {{Art|{{padleft:{{{1|0}}}|4|0}}|{{User:Tiddlywinks/FormImageData|{{{1|0}}}|name}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|0}} }}
{{!}} rowspan="{{User:Tiddlywinks/FormImageData|{{{1|0}}}|formcount}}" {{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|notes}}|
{{!}} rowspan="{{User:Tiddlywinks/FormImageData|{{{1|0}}}|formcount}}" {{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|notes}}|
{{!}} {{{start}}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{{start}}}}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{{start}}}}} {{!}}{{!}} {{{{{ms|MS/6}}}|{{padleft:{{{1|0}}}|{{{padding|3}}}|0}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{{start}}}}} }} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{{start}}}}} {{!}}{{!}} {{Art|{{padleft:{{{1|0}}}|4|0}}|{{User:Tiddlywinks/FormImageData|{{{1|0}}}|name}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{{start}}}}} }} }}
{{!}}-
  {{#if: {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start}}} + 1}}}}<!-- If the next form has a name, print it. AND if the following form has a name...etc -->|
{{!}} {{{start|0}}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{{start|0}}}}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{{start|0}}}}} {{!}}{{!}} {{{{{ms|MS/6}}}|{{padleft:{{{1|0}}}|{{{padding|3}}}|0}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{{start|0}}}}} }} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{{start|0}}}}} {{!}}{{!}} {{Art|{{padleft:{{{1|0}}}|4|0}}|{{User:Tiddlywinks/FormImageData|{{{1|0}}}|name}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{{start|0}}}}} }} }}
{{!}} {{#expr: {{{start}}} + 1}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start}}} + 1}}}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start}}} + 1}}}} {{!}}{{!}} {{{{{ms|MS/6}}}|{{padleft:{{{1|0}}}|{{{padding|3}}}|0}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start}}} + 1}}}} }} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start}}} + 1}}}} {{!}}{{!}} {{Art|{{padleft:{{{1|0}}}|4|0}}|{{User:Tiddlywinks/FormImageData|{{{1|0}}}|name}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start}}} + 1}}}} }}
{{#if: {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start|0}}} + 1}}}}<!-- If the next form has a name, print it. AND if the following form has a name...etc -->|
{{#if: {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start}}} + 2}}}}|
{{!}}-
{{!}} {{#expr: {{{start}}} + 2}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start}}} + 2}}}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start}}} + 2}}}} {{!}}{{!}} {{{{{ms|MS/6}}}|{{padleft:{{{1|0}}}|{{{padding|3}}}|0}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start}}} + 2}}}} }} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start}}} + 2}}}} {{!}}{{!}} {{Art|{{padleft:{{{1|0}}}|4|0}}|{{User:Tiddlywinks/FormImageData|{{{1|0}}}|name}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start}}} + 2}}}} }}
{{!}} {{#expr: {{{start|0}}} + 1}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start|0}}} + 1}}}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start|0}}} + 1}}}} {{!}}{{!}} {{{{{ms|MS/6}}}|{{padleft:{{{1|0}}}|{{{padding|3}}}|0}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start|0}}} + 1}}}} }} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start|0}}} + 1}}}} {{!}}{{!}} {{Art|{{padleft:{{{1|0}}}|4|0}}|{{User:Tiddlywinks/FormImageData|{{{1|0}}}|name}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start|0}}} + 1}}}} }}
{{#if: {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start}}} + 3}}}}|
{{#if: {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start|0}}} + 2}}}}|
{{!}} {{#expr: {{{start}}} + 3}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start}}} + 3}}}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start}}} + 3}}}} {{!}}{{!}} {{{{{ms|MS/6}}}|{{padleft:{{{1|0}}}|{{{padding|3}}}|0}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start}}} + 3}}}} }} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start}}} + 3}}}} {{!}}{{!}} {{Art|{{padleft:{{{1|0}}}|4|0}}|{{User:Tiddlywinks/FormImageData|{{{1|0}}}|name}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start}}} + 3}}}} }}
{{!}}-
{{#if: {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start}}} + 4}}}}|
{{!}} {{#expr: {{{start|0}}} + 2}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start|0}}} + 2}}}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start|0}}} + 2}}}} {{!}}{{!}} {{{{{ms|MS/6}}}|{{padleft:{{{1|0}}}|{{{padding|3}}}|0}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start|0}}} + 2}}}} }} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start|0}}} + 2}}}} {{!}}{{!}} {{Art|{{padleft:{{{1|0}}}|4|0}}|{{User:Tiddlywinks/FormImageData|{{{1|0}}}|name}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start|0}}} + 2}}}} }}
{{!}} {{#expr: {{{start}}} + 4}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start}}} + 4}}}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start}}} + 4}}}} {{!}}{{!}} {{{{{ms|MS/6}}}|{{padleft:{{{1|0}}}|{{{padding|3}}}|0}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start}}} + 4}}}} }} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start}}} + 4}}}} {{!}}{{!}} {{Art|{{padleft:{{{1|0}}}|4|0}}|{{User:Tiddlywinks/FormImageData|{{{1|0}}}|name}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start}}} + 4}}}} }}
{{#if: {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start|0}}} + 3}}}}|
{{User:Tiddlywinks/fa-row|{{{1}}}|start={{#expr: {{{start}}} + 5}}}}
{{!}}-
{{!}} {{#expr: {{{start|0}}} + 3}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start|0}}} + 3}}}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start|0}}} + 3}}}} {{!}}{{!}} {{{{{ms|MS/6}}}|{{padleft:{{{1|0}}}|{{{padding|3}}}|0}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start|0}}} + 3}}}} }} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start|0}}} + 3}}}} {{!}}{{!}} {{Art|{{padleft:{{{1|0}}}|4|0}}|{{User:Tiddlywinks/FormImageData|{{{1|0}}}|name}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start|0}}} + 3}}}} }}
{{#if: {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start|0}}} + 4}}}}|
{{!}}-
{{!}} {{#expr: {{{start|0}}} + 4}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|form|{{#expr: {{{start|0}}} + 4}}}} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start|0}}} + 4}}}} {{!}}{{!}} {{{{{ms|MS/6}}}|{{padleft:{{{1|0}}}|{{{padding|3}}}|0}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|ms|{{#expr: {{{start|0}}} + 4}}}} }} {{!}}{{!}} {{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start|0}}} + 4}}}} {{!}}{{!}} {{Art|{{padleft:{{{1|0}}}|4|0}}|{{User:Tiddlywinks/FormImageData|{{{1|0}}}|name}}|form={{User:Tiddlywinks/FormImageData|{{{1|0}}}|art|{{#expr: {{{start|0}}} + 4}}}} }}
}} }} }} }}
}} }} }} }}
  }}
  }}
Line 23: Line 27:


----
----
This template reads all forms from [[User:Tiddlywinks/FormImageData]] for a given NDex and prints table rows for the data. (It reads the data in chunks of 5 and recurses if there is more data.)
This template reads all forms from [[User:Tiddlywinks/FormImageData]] for a given NDex and prints table rows for the data. It prints up to 5 forms at a time; if there are more, call this template again with <code>start=(5x)</code>.


==Parameters==
==Parameters==
;Unnamed
;Unnamed
* 1: NDex (note: if you're using ''ms'' for a pre-Gen IX image, only use 3 digits)
* 1: NDex (note: if you're using ''ms'' for a pre-Gen IX image, only use 3 digits)
* 2: the number of forms this species has
;Named
;Named
* ''start'' (optional): form # to start from
* ''ms'' (optional): switch the MS template used to try to display forms (defaults to MS/6)
* ''ms'' (optional): switch the MS template used to try to display forms (defaults to MS/6)
* ''padding'' (optional): the number of digits to pad the NDex to for the current MS template (defaults to 3); this does not apply to art (which always pads to 4)
* ''padding'' (optional): the number of digits to pad the NDex to for the current MS template (defaults to 3); this does not apply to art (which always pads to 4)
* ''start'' (optional): form # to start from; this is only meant to be used when the function recurses




</noinclude>
</noinclude>

Latest revision as of 03:52, 8 June 2023



This template reads all forms from User:Tiddlywinks/FormImageData for a given NDex and prints table rows for the data. It prints up to 5 forms at a time; if there are more, call this template again with start=(5x).

Parameters

Unnamed
  • 1: NDex (note: if you're using ms for a pre-Gen IX image, only use 3 digits)
Named
  • start (optional): form # to start from
  • ms (optional): switch the MS template used to try to display forms (defaults to MS/6)
  • padding (optional): the number of digits to pad the NDex to for the current MS template (defaults to 3); this does not apply to art (which always pads to 4)