User:Mezzodrinker/BattleArchangelCell: Difference between revisions
From Cassette Beasts
Mezzodrinker (talk | contribs) Created page with "<onlyinclude><td align="center" style="padding: 10px;">[[File:{{{1}}}.png|80x62px|link={{{1}}}]]<br/>[[{{{1}}}]]</td></onlyinclude> == Examples == * {{#tag: pre | <nowiki>{{<..." |
Mezzodrinker (talk | contribs) m Re-size image from 80×82px to 80×62px. |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<td align="center" style="padding: 10px;">[[File:{{{1}}}.png{{!}}80x62px{{!}}link={{#if:{{{link|}}}|{{{link}}}|{{{1}}}}}]]<br/>[[{{#if:{{{link|}}}|{{{link}}}|{{{1}}}}}{{#if:{{{label|}}}|{{!}}{{{label|}}}}}]]</td><noinclude> | |||
== Parameters == | |||
; 1<span class="anchor" id="1"></span> | |||
: Name of the image file to display, sans leading <code>File:</code> or trailing <code>.png</code>. | |||
; link<span class="anchor" id="link"></span> | |||
: ''(optional, defaults to [[#1|positional parameter #1]])''<br/>Link destination for the image and link. Takes priority over positional parameter #1. | |||
; label | |||
: ''(optional)''<br/>Custom text to display instead of the [[#link|<code>link</code> parameter]] or [[#1|positional parameter #1]]. | |||
== Examples == | == Examples == | ||
* {{#tag: pre | <nowiki>{{</nowiki>{{#ifeq: {{SUBJECTSPACE}} | Template | {{PAGENAME}} | {{FULLPAGENAME}}}}<nowiki>|Morgante}}</nowiki> }} → {{{{FULLPAGENAME}}|Morgante}} | * {{#tag: pre | <nowiki>{{</nowiki>{{#ifeq: {{SUBJECTSPACE}} | Template | {{PAGENAME}} | {{FULLPAGENAME}}}}<nowiki>|Morgante 2|link=Morgante}}</nowiki> }} → {{{{FULLPAGENAME}}|Morgante 2|link=Morgante}} | ||
* {{#tag: pre | <nowiki>{{</nowiki>{{#ifeq: {{SUBJECTSPACE}} | Template | {{PAGENAME}} | {{FULLPAGENAME}}}}<nowiki>| | * {{#tag: pre | <nowiki>{{</nowiki>{{#ifeq: {{SUBJECTSPACE}} | Template | {{PAGENAME}} | {{FULLPAGENAME}}}}<nowiki>|Heckahedron|label=I Am Not A Cube}}</nowiki> }} → {{{{FULLPAGENAME}}|Heckahedron|label=I Am Not A Cube}} | ||
</noinclude> | |||
Latest revision as of 17:40, 10 December 2024
[[File:{{{1}}}.png|80x62px|link={{{1}}}]]
[[{{{1}}}]]
Parameters
- 1
- Name of the image file to display, sans leading
File:or trailing.png. - link
- (optional, defaults to positional parameter #1)
Link destination for the image and link. Takes priority over positional parameter #1. - label
- (optional)
Custom text to display instead of thelinkparameter or positional parameter #1.
Examples
{{User:Mezzodrinker/BattleArchangelCell|Morgante 2|link=Morgante}}→
Morgante{{User:Mezzodrinker/BattleArchangelCell|Heckahedron|label=I Am Not A Cube}}→
I Am Not A Cube
