Difference between revisions of "Template: WebLogs"

From Elder Tale Online MUSH
Jump to: navigation, search
m
m
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
Data about a few of the countries of Africa (retrieved from the URL https://discoursedb.org/AfricaCSV.txt, using the [https://mediawiki.org/wiki/Extension:External_Data External Data] extension):
+
<noinclude>
 
+
This is the "WebLogs" template.
{{#get_web_data:url=https://scene.eldertaleonline.com/api/character/18359#|format=json|data=name=NodeName}}
+
It should be called in the following format:
{| class="wikitable"
+
<pre>
 +
{{WebLogs
 +
|CharacterID=
 +
}}
 +
</pre>
 +
Edit the page to see the template text.
 +
</noinclude><includeonly>{{#get_web_data:url=https://scene.eldertaleonline.com/api/character/{{{CharacterID|18359}}}|format=json|data=name=Title,desc=Description,id=NodeID,dt=date}}
 +
{| class="wikitable mw-collapsible mw-collapsed" style="max-width:100%; min-width:100%;"
 
! Name
 
! Name
! Borders
+
! Date
! Population
+
! Summary{{#for_external_table:<nowiki/>
! Area {{#for_external_table:<nowiki/>
 
 
{{!}}-
 
{{!}}-
{{!}} {{{name}}}
+
{{!}}style="min-width:25em" {{!}} [https://scene.eldertaleonline.com/{{{id}}} {{{name}}}]
{{!}} {{{borders}}}
+
{{!}}style="min-width:10em" {{!}}{{{dt}}}  
{{!}} {{{population}}}
+
{{!}}<div style="max-width:800px; max-height:1.5em; text-overflow: ellipsis; white-space: pre-wrap; overflow: hidden; display:block;"> {{{desc}}}</div>
{{!}} {{{area}}}}}
+
}}
 
|}
 
|}
 +
</includeonly>

Latest revision as of 22:41, 26 July 2020

This is the "WebLogs" template. It should be called in the following format:

{{WebLogs
|CharacterID=
}}

Edit the page to see the template text.