Actions

Module

Editing Documentation

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 916: Line 916:
  
 
function p.makeSubpagesBlurb(args, env)
 
function p.makeSubpagesBlurb(args, env)
--[[
+
-- Get the template title object
-- Generates the "Subpages of this template" link.
 
-- @args - a table of arguments passed by the user
 
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
 
 
-- Messages:
 
-- 'template-pagetype' --> 'template'
 
-- 'module-pagetype' --> 'module'
 
-- 'default-pagetype' --> 'page'
 
-- 'subpages-link-display' --> 'Subpages of this $1'
 
--]]
 
 
local subjectSpace = env.subjectSpace
 
local subjectSpace = env.subjectSpace
 
local templateTitle = env.templateTitle
 
local templateTitle = env.templateTitle
Line 932: Line 922:
 
return nil
 
return nil
 
end
 
end
 +
-- Make the subpages blurb.
 
local pagetype
 
local pagetype
 
if subjectSpace == 10 then
 
if subjectSpace == 10 then
Line 948: Line 939:
  
 
function p.makePrintBlurb(args, env)
 
function p.makePrintBlurb(args, env)
--[=[
+
-- Get the /Print title object
-- Generates the blurb displayed when there is a print version of the template available.
 
-- @args - a table of arguments passed by the user
 
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
 
--
 
-- Messages:
 
-- 'print-link-display' --> '/Print'
 
-- 'print-blurb' --> 'A [[Help:Books/for experts#Improving the book layout|print version]]'
 
-- .. ' of this template exists at $1.'
 
-- .. ' If you make a change to this template, please update the print version as well.'
 
-- 'display-print-category' --> true
 
-- 'print-category' --> 'Templates with print versions'
 
--]=]
 
 
local printTitle = env.printTitle
 
local printTitle = env.printTitle
 
if not printTitle then
 
if not printTitle then
 
return nil
 
return nil
 
end
 
end
 +
-- Make the print blurb.
 
local ret
 
local ret
 
if printTitle.exists then
 
if printTitle.exists then

Please note that all contributions to Unofficial Stationeers Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Unofficial Stationeers Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)