Difference between revisions of "Template:Honor infobox"
From Pathfinder Wiki
DesignerThan (talk | contribs) |
DesignerThan (talk | contribs) |
||
Line 80: | Line 80: | ||
|col1_class4=honor-infobox-button | |col1_class4=honor-infobox-button | ||
|col1_noDefaultStyle5=true | |col1_noDefaultStyle5=true | ||
− | |col1_data5={{#ifsysop:<div class="dropdown"><htmltag tagname="button" class="btn btn-accent dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{Localize|Downloads}}</htmltag><div class="dropdown-menu" aria-labelledby="dropdownMenuButton"><htmltag tagname="a" href="{{fullurl:{{#titleparts:{{PAGENAME}}|2|1}}/Requirements{{GetLangSuffix}}|action=mpdf}}" class="dropdown-item">{{Localize|Requirements}} | + | |col1_data5={{#ifeq:{{#var:honorstate}}|piloting|<htmltag tagname="a" class="btn btn-accent" href="{{fullurl:Special:EmailUser/DesignerThan}}" target="_blank">{{Localize|Give Feedback}}</htmltag>|}} |
+ | |col1_class5=honor-infobox-button | ||
+ | |col1_noDefaultStyle10=true | ||
+ | |col1_data10={{#ifsysop:<div class="dropdown"><htmltag tagname="button" class="btn btn-accent dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{Localize|Downloads}}</htmltag><div class="dropdown-menu" aria-labelledby="dropdownMenuButton"><htmltag tagname="a" href="{{fullurl:{{#titleparts:{{PAGENAME}}|2|1}}/Requirements{{GetLangSuffix}}|action=mpdf}}" class="dropdown-item">{{Localize|Requirements}} | ||
</htmltag><htmltag tagname="a" href="{{fullurl:{{#titleparts:{{PAGENAME}}|2|1}}/Answer Key{{GetLangSuffix}}|action=mpdf}}" class="dropdown-item">{{Localize|Answer Key}}</htmltag></div></div>|}} | </htmltag><htmltag tagname="a" href="{{fullurl:{{#titleparts:{{PAGENAME}}|2|1}}/Answer Key{{GetLangSuffix}}|action=mpdf}}" class="dropdown-item">{{Localize|Answer Key}}</htmltag></div></div>|}} | ||
− | | | + | |col1_class10=honor-infobox-button |
}} | }} | ||
</div>{{#invoke:Utilities|logger|{{Localize|{{#var:localCategory}}}}}} | </div>{{#invoke:Utilities|logger|{{Localize|{{#var:localCategory}}}}}} | ||
</includeonly> | </includeonly> |
Revision as of 16:19, 23 February 2022
This template creates an infobox for an honor.
Mechanics
The mechanics are just opaque magic (sorry).
Example
<div style="max-width: 300px">
- {{Honor infobox
- |honorlandingpage=AY Honors/Camping Skills IV
- |skill=2
- |year=2001
- |category=Recreation
- |authority=General Conference
- |insignia=Camping_Skills_IV.png
- |insignia_source=foo
- |master1=Wilderness
- |honorlandingpage=AY Honors/Camping Skills IV
- }}
</div>