Template:MasterHeader

From Gospel Translations

(Difference between revisions)
Jump to:navigation, search
Line 10: Line 10:
|date= (in the format "1 January 2000"
|date= (in the format "1 January 2000"
|other= (if there is special info about the resource, enter it here)
|other= (if there is special info about the resource, enter it here)
-
|categorytopic= (the main topic of this article)
+
|topic= (the main topic of this article)
 +
|subtopic= next topic down in the hierarchy
|mediatype= (book-for the table of contents, chapter-for parts of a book, article, or sermon)
|mediatype= (book-for the table of contents, chapter-for parts of a book, article, or sermon)
|lang= (English, Spanish, etc.)
|lang= (English, Spanish, etc.)
Line 19: Line 20:
|reviewed=Not Reviewed
|reviewed=Not Reviewed
|newtitle=(the translated title of the article--you put it here, not in the article itself)
|newtitle=(the translated title of the article--you put it here, not in the article itself)
 +
|series = the set/book this resource belongs to
 +
|year=
 +
|month=
 +
|day= (the number, like 21)
}}
}}
</nowiki>
</nowiki>
Line 24: Line 29:
That will take care of it!
That will take care of it!
-
</noinclude> <includeonly>
+
</noinclude><includeonly>
<div id="MasterHeader">
<div id="MasterHeader">
{{Languages|{{#titleparts:{{PAGENAME}}|{{{levels}}}}}}}
{{Languages|{{#titleparts:{{PAGENAME}}|{{{levels}}}}}}}
-
<div style="border: 1px solid rgb(148, 148, 148); margin: 10px 0pt 10px 10px; padding: 3px 8px 5px; float: right; background-color: rgb(233, 242, 254); color: rgb(51, 51, 51); font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10px; line-height: 13px; width: 400px;"><center><span style="font-size: 12px; font-weight: bold;">About This Resource</span></center>This text is provided in partnership with [{{{partnerurl}}} {{{partner}}}]. {{{other}}} We're grateful for their help in making biblical resources accessible to Christians all around the world!<br><br> <div style="width: 50%; float: right;">'''Published:''' {{{date|n/a}}}<br>'''Translator:''' {{{translator}}}</div> <div>'''Author(s):''' {{{author}}}<br>'''Status:''' {{{reviewed|Not Reviewed}}}<br>'''Editor:''' {{{editor|n/a}}}</div></div>  
+
<div style="float:right">
 +
<table style="border: 1px solid rgb(148, 148, 148); margin: 10px 0pt 10px 10px; padding: 3px 4px 5px 4px; background-color: rgb(233, 242, 254); color: rgb(51, 51, 51); font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10px; line-height: 13px; width: 200px;" cellspacing="0" cellpadding="0">
 +
  <tr>
 +
    <td colspan="2" style="padding: 10px 0; text-align:center"><font style="font-size: 12px; font-weight: bold;">About This {{{mediatype}}}</font></td>
 +
  </tr>
 +
  <tr>
 +
    <td valign="top" width="75"><strong>Publisher:</strong></td>
 +
    <td valign="top">[[:Category:{{{partner}}}{{!}}{{{partner}}}]]</td>
 +
  </tr>
 +
  <tr>
 +
    <td valign="top"><strong>Authors:</strong></td>
 +
    <td valign="top">[[:Category:{{{author}}}{{!}}{{{author}}}]] {{#ifeq:{{{secondauthor|Blank}}}|Blank|&nbsp;|and [[:Category:{{{secondauthor}}}{{!}}{{{secondauthor}}}]]}}</td>
 +
  </tr>
 +
<!--#########START SERIES
 +
  <tr>                     
 +
    <td valign="top"><strong>{{#switch:{{lc:{{{mediatype}}}}}|article=Series|Book}}:</strong></td>
 +
    <td valign="top">
 +
{{#ifeq: {{{series|None}}}|None|None|[[:Category:{{{series}}}{{!}}{{{series}}}]]}}</td>
 +
  </tr>
 +
###############END SERIES -->
 +
  <tr>
 +
    <td valign="top"><strong>Topic:</strong></td>
 +
    <td valign="top">{{#ifeq: {{{topic|None}}} | None | None | [[:Category:{{{subtopic}}}|{{{subtopic}}}]]}}
 +
</td>
 +
  </tr>
 +
  <tr>
 +
    <td valign="top"><strong>Subtopic:</strong></td>
 +
    <td valign="top">{{#ifeq: {{{subtopic|None}}} | None | None | [[:Category:{{{subtopic}}}|{{{subtopic}}}]]}}
 +
</td>
 +
  </tr>
 +
<!-- ### START new topic with catswitch
 +
  <tr>
 +
    <td valign="top"><strong>Topic:</strong></td>
 +
    <td valign="top">{{#ifeq: {{{lang}}} | English | [[:Category:{{{topic{{!}}None}}}{{!}}{{{topic{{!}}None}}}]] | [[:Category:{{Catswitch/{{#titleparts:{{PAGENAME}}|{{{levels}}}|{{#expr: {{{levels}}} +1 }}}}|{{{topic}}}}}{{!}}{{Catswitch/{{#titleparts:{{PAGENAME}}|{{{levels}}}|{{#expr: {{{levels}}} +1 }}}}|{{{topic}}}}}]]}}
 +
</td>
 +
  </tr>
 +
  <tr>
 +
    <td valign="top"><strong>Subtopic:</strong></td>
 +
    <td valign="top">{{#ifeq: {{{lang}}} | English | [[:Category:{{{subtopic{{!}}None}}}{{!}}{{{subtopic{{!}}None}}}]] |
 +
[[:Category:{{Catswitch/{{#titleparts:{{PAGENAME}}|{{{levels}}}|{{#expr: {{{levels}}} +1 }}}}|{{{subtopic}}}}}{{!}}{{Catswitch/{{#titleparts:{{PAGENAME}}|{{{levels}}}|{{#expr: {{{levels}}} +1 }}}}|{{{subtopic}}}}}]] }}
 +
</td>
 +
  </tr>
 +
### END new topic with catswitch-->
 +
  <tr>
 +
    <td valign="top" style="padding-bottom: 4px;"><strong>Date:</strong></td>
 +
    <td valign="top" style="padding-bottom: 4px;">{{{date}}}</td>
 +
  </tr>
 +
<!--
 +
######## Start translation info
 +
-->
 +
  <tr>
 +
    <td valign="top" style="border-top: 1px solid #999; padding-top: 4px; margin-top: 4px;"><strong>Status:</strong></td>
 +
    <td valign="top" style="border-top: 1px solid #999; padding-top: 4px; margin-top: 4px;">{{{reviewed|Not Reviewed}}}</td>
 +
  </tr>
 +
  <tr>
 +
    <td valign="top"><strong>Translator:</strong></td>
 +
    <td valign="top">{{#ifeq: {{{lang}}} | English | None|[[User:{{{translator|n/a}}}{{!}}{{{translator|n/a}}}]]}}</td>
 +
  </tr>
 +
  <tr>
 +
    <td style="padding-bottom: 4px;"><strong>Editor:</strong></td>
 +
    <td style="padding-bottom: 4px;">{{#ifeq: {{{lang}}} | English | None|[[User:{{{editor|n/a}}}{{!}}{{{editor|n/a}}}]]}}</td>
 +
  </tr>
 +
<!--
 +
######## START New chapter navigation
 +
 
 +
  <tr>
 +
    <td colspan="2" valign="top" style="border-top: 1px solid #999; padding-top: 4px; margin-top: 4px;"><center><strong>Related Resources</strong></center>
 +
{{#dpl:
 +
|category={{#ifeq: {{{series|None}}} | None | {{{topic}}} | {{{series}}}}}
 +
|category={{{lang}}}
 +
|include={MasterHeader}:newtitle
 +
|ordermethod=title
 +
|count={{#ifeq: {{{mediatype}}} | Article | 10 | 40}}
 +
|format=,,<br>,
 +
|secseparators=[[%PAGE%|,]]
 +
}}
 +
</td>
 +
  </tr>
 +
 
 +
######## END New chapter navigation
 +
-->
 +
</table>
 +
</div>
{{#ifeq: {{{reviewed}}} | Final Version | [[Category:Final Version]]}}
{{#ifeq: {{{reviewed}}} | Final Version | [[Category:Final Version]]}}
-
[[Category:{{{categorytopic|Missing Topic}}}]]
+
[[Category:{{{topic|Missing Topic}}}]]
-
[[Category:{{{author}}}]]
+
[[Category:{{{subtopic|Missing Topic}}}]]
-
[[Category:{{{partner}}}]]
+
[[Category:{{{author|Missing Author}}}]]
 +
[[Category:{{{partner|Missing Publisher}}}]]
 +
<!------###### SERIES cat
 +
{{#ifeq: {{{series|None}}}|None| |[[Category:{{{series}}}]]}}
 +
 
[[Category:{{{lang}}}]]
[[Category:{{{lang}}}]]
[[Category:{{{mediatype}}}]]
[[Category:{{{mediatype}}}]]
-
{{ #ifeq: {{{lang}}} | English | |{{ #ifeq: {{{reviewed}}} | Final Version |  | {{ #ifeq: {{{reviewed}}} | Peer Reviewed | {{PeerReviewed}} | {{NeedsReview}}}}}}}}
+
<!------###### Needs Review template
 +
{{ #ifeq: {{#language:{{#titleparts:{{PAGENAME}}|{{{levels}}}|{{#expr: {{{levels}}} +1 }}}}}} | English | |{{ #ifeq: {{{reviewed}}} | Final Version |  | {{ #ifeq: {{{reviewed}}} | Peer Reviewed | {{PeerReviewed}} | {{NeedsReview}}}}}}}}
 +
#########-->
{{ #ifeq: {{{newtitle|empty}}} | empty |  | {{#ifeq: {{{lang}}} | Arabic | <div style="direction:rtl;"><br><h2 id="tTitle">{{{newtitle}}}</h2></div>|<br><h2 id="tTitle">{{{newtitle}}}</h2> }} }}  
{{ #ifeq: {{{newtitle|empty}}} | empty |  | {{#ifeq: {{{lang}}} | Arabic | <div style="direction:rtl;"><br><h2 id="tTitle">{{{newtitle}}}</h2></div>|<br><h2 id="tTitle">{{{newtitle}}}</h2> }} }}  
-
</div></includeonly>  
+
</div>
-
 
+
</includeonly><noinclude>[[Category:Templates]]</noinclude>
-
<noinclude>[[Category:Templates]]</noinclude>
+

Revision as of 20:35, 9 June 2008


This is a template that combines the Language Bar, Resource Info Box, and general categorization all into one package. To use it, you'll just include the code below at the top of your page. Please note that this is the version you would include on English pages.

{{MasterHeader
|author= (enter the name/s of the author/s)
|partnerurl= (the website address for the publisher or copyright holder)
|partner= (the name of the publisher or copyright holder)
|date= (in the format "1 January 2000"
|other= (if there is special info about the resource, enter it here)
|topic= (the main topic of this article)
|subtopic= next topic down in the hierarchy
|mediatype= (book-for the table of contents, chapter-for parts of a book, article, or sermon)
|lang= (English, Spanish, etc.)
|editor= (n/a if there isn't one)
|translator= (translators name or user id)
|levels= (the number of forward slashes (/'s) in the page title (the part of the URL ''after'' 
gospeltranslations.org/wiki/)
|reviewed=Not Reviewed
|newtitle=(the translated title of the article--you put it here, not in the article itself)
|series = the set/book this resource belongs to
|year=
|month=
|day= (the number, like 21)
}}

That will take care of it!

Navigation
Volunteer Tools
Other Wikis
Toolbox