Difference between revisions of "Template:Honor infobox"

From Pathfinder Wiki
Line 19: Line 19:
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
__NOTOC__
 
<div class="container">
 
<div class="row">
 
<div class="col-md-3 order-md-last">
 
 
{| style="text-align: center; box-shadow: 5px 5px 10px rgba(0,0,0, .3); border-radius: 10px; margin-bottom: 0;"
 
{| style="text-align: center; box-shadow: 5px 5px 10px rgba(0,0,0, .3); border-radius: 10px; margin-bottom: 0;"
 
|-
 
|-
Line 29: Line 25:
 
|colspan="2" style="padding: .5rem 2rem;" |[[File:{{{insignia}}}|100px]]
 
|colspan="2" style="padding: .5rem 2rem;" |[[File:{{{insignia}}}|100px]]
 
|-
 
|-
|colspan="2" style="padding: 0 0 .5rem 0; font-size: 1.5rem;" |<span style="color: orange;">{{#fas:dumbbell}}</span> <span style="color: orange;">{{#fas:dumbbell}}</span> <span style="color: lightgrey;">{{#fas:dumbbell}}</span>
+
|colspan="2" style="padding: 0 0 .5rem 0; font-size: 1.5rem;" |<span style="color:\
 +
{{SkillColor|skill={{{skill}}}|star=1}};">{{#fas:dumbbell}}</span> <span style="color: {{SkillColor|skill={{{skill}}}|star=2}};">{{#fas:dumbbell}}</span> <span style="color: {{SkillColor|skill={{{skill}}}|star=3}};">{{#fas:dumbbell}}</span>
 
|-
 
|-
 
!colspan="2" style="text-align: center; font-size: 1rem; font-weight: bold;" |Part of
 
!colspan="2" style="text-align: center; font-size: 1rem; font-weight: bold;" |Part of
Line 41: Line 38:
 
|{{{year}}}
 
|{{{year}}}
 
|}
 
|}
</div>
 
<div class="col-md-9">
 
<ul class="nav nav-tabs" id="myTab" role="tablist">
 
  <li class="nav-item" role="presentation">
 
    <htmltag tagname="a" href="#overview" class="nav-link active" id="overview-tab" data-toggle="tab" role="tab" aria-controls="overview" aria-selected="true">{{:Tab Name/Overview{{GetLangSuffix}}}}</htmltag>
 
  </li>
 
  <li class="nav-item" role="presentation">
 
    <htmltag tagname="a" href="#requirements" class="nav-link" id="requirements-tab" data-toggle="tab" role="tab" aria-controls="requirements" aria-selected="false">{{:Tab Name/Requirements{{GetLangSuffix}}}}</htmltag>
 
  </li>
 
  <li class="nav-item" role="presentation">
 
    <htmltag tagname="a" href="#answerkey" class="nav-link" id="answerkey-tab" data-toggle="tab" role="tab" aria-controls="answerkey" aria-selected="false">{{:Tab Name/Answer Key{{GetLangSuffix}}}}</htmltag>
 
  </li>
 
  <li class="nav-item" role="presentation">
 
    <htmltag tagname="a" href="#lessonplans" class="nav-link" id="lessonplans-tab" data-toggle="tab" role="tab" aria-controls="lessonplans" aria-selected="false">{{:Tab Name/Lesson Plans{{GetLangSuffix}}}}</htmltag>
 
  </li>
 
  <li class="nav-item" role="presentation">
 
    <htmltag tagname="a" href="#worksheet" class="nav-link" id="worksheet-tab" data-toggle="tab" role="tab" aria-controls="worksheet" aria-selected="false">{{:Tab Name/Worksheet{{GetLangSuffix}}}}</htmltag>
 
  </li>
 
</ul>
 
<div class="tab-content" id="myTabContent">
 
<div class="tab-pane fade show active" id="overview" role="tabpanel" aria-labelledby="overview-tab">
 
{{:{{#titleparts:{{{page|{{PAGENAME}}}}}|2|1}}/Overview{{GetLangSuffix}}}}
 
{{:Tab Name/Challenging Part{{GetLangSuffix}}}}
 
</div>
 
<div class="tab-pane fade show" id="requirements" role="tabpanel" aria-labelledby="requirements-tab">
 
[[{{#titleparts:{{PAGENAME}}|2|1}}/Requirements{{GetLangSuffix}}{{:Tag Name/Printable Requirements{{GetLangSuffix}}}}]]
 
  {{#lst:{{#titleparts:{{PAGENAME}}|2|1}}/Requirements{{GetLangSuffix}}|Body}}
 
</div>
 
<div class="tab-pane fade" id="answerkey" role="tabpanel" aria-labelledby="answerkey-tab">
 
 
 
[[{{#titleparts:{{PAGENAME}}|2|1}}/Answer Key{{GetLangSuffix}}|<translate><!--T:26--> Printable Answer Key</translate>]] - [{{fullurl:{{#titleparts:{{PAGENAME}}|2|1}}/Answer Key{{GetLangSuffix}}|action=edit}} {{:Tab Name/Edit Answer Key{{GetLangSuffix}}}}]
 
 
{{#lst:{{#titleparts:{{PAGENAME}}|2|1}}/Answer Key{{GetLangSuffix}}|Body}}
 
</div>
 
<div class="tab-pane fade" id="lessonplans" role="tabpanel" aria-labelledby="lessonplans-tab">
 
{{#lst:{{#titleparts:{{PAGENAME}}|2|1}}/Lesson Plans{{GetLangSuffix}}|Body}}
 
</div>
 
<div class="tab-pane fade" id="worksheet" role="tabpanel" aria-labelledby="worksheet-tab">
 
{{#lst:{{#titleparts:{{PAGENAME}}|2|1}}/Worksheet{{GetLangSuffix}}|Body}}
 
</div>
 
</div> <!-- close tabs-content div -->
 
</div> <!-- close column div -->
 
</div> <!-- close row div -->
 
</div> <!-- close container div -->
 
 
<includeonly>
 
<includeonly>

Revision as of 05:11, 10 January 2021

This template creates an infobox for an honor.

TODO

  • Color the dumbells based on the skill parameter.
  • Fix broken things
  • separate out the data collection/specification from presentation templates?
  • Add the honor to categories based on template parameters, etc.


Example

Template:Honor infobox2