Difference between revisions of "Template:GetHonorLandingPageID"

From Pathfinder Wiki
(Created page with "<noinclude>As soon as the Table with the honor metadata is populated, this template should retrive the page ID of an Honor's landing page by using the honorname. Using the car...")
 
 
Line 1: Line 1:
 
<noinclude>As soon as the Table with the honor metadata is populated, this template should retrive the page ID of an Honor's landing page by using the honorname. Using the cargo query function and the Template GetHonorLandingPage</noinclude>
 
<noinclude>As soon as the Table with the honor metadata is populated, this template should retrive the page ID of an Honor's landing page by using the honorname. Using the cargo query function and the Template GetHonorLandingPage</noinclude>
 +
 +
Example:<br>
 +
<nowiki>{{</nowiki>GetHonorLandingPageID|honorname=Postcards}}<br>
 +
{{GetHonorLandingPageID|honorname=Postcards}}
 +
 +
<includeonly><onlyinclude>{{#cargo_query:tables=Honors
 +
  |fields=_pageID
 +
  |where=honorname="{{{honorname}}}"
 +
  |format=template
 +
  |template=CargoOutput-NoFormatting
 +
  |default=
 +
}}</onlyinclude></includeonly>

Latest revision as of 00:59, 31 January 2022

As soon as the Table with the honor metadata is populated, this template should retrive the page ID of an Honor's landing page by using the honorname. Using the cargo query function and the Template GetHonorLandingPage

Example:
{{GetHonorLandingPageID|honorname=Postcards}}
150161